package com.talent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.talent.pojo.Schedule;
import com.talent.vo.ScheduleVo;

public interface ScheduleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Schedule record);

    int insertSelective(Schedule record);

    Schedule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Schedule record);

    int updateByPrimaryKey(Schedule record);

	List<ScheduleVo> selectVoByPrimaryKey(Integer id);

	ScheduleVo selectVoByTrainDetailId(@Param("trainDetailId")Integer trainDetailId);

	void updateStatus(@Param("id")Integer id, @Param("sta")int sta);

	void updateSuggestion(@Param("id")int id, @Param("suggestion")String suggestion);

	List<Schedule> selectTopId(@Param("length")int length);

	void deleteByTrainDetailId(@Param("id")Integer id);

	ScheduleVo selectVoByPrimaryKey1(@Param("id")Integer id);

	Integer selectTop();
}